<?php
    $table = $this->arrData[$this->arrLeague[0]['LeagueID']];
?>
<div id="box_bxh_bongda" class="box_col_300 box_width_common left">
    <div class="txt_title_box">Bảng xếp hạng <?php echo $this->arrLeague[0]['Name']; ?></div>
    <div class="content_news">
        <div class="content_tab" style="display:block;">
            <table class="tb_bxh">
                <tr class="top">
                    <td class="w150">Team</td>
                    <td class="w20">W</td>
                    <td class="w20">D</td>
                    <td class="w20">L</td>
                    <td class="w60">Pts</td>
                </tr>
                <?php
                $stt = 1;
                foreach ($table['tableRanking'] as $rank){
                    if ($stt > 10)
                        break;
                    ?>
                    <tr class="<?php if ($stt <= 3) echo 'top2'; elseif ($stt == 4 || $stt == 5) echo 'top3'; else echo 'top4' ?>">
                        <td class="w150 txt_black_hover_blue"><?php echo $rank['Name']; ?></td>
                        <td class="w20"><?php echo $rank['Won']; ?></td>
                        <td class="w20"><?php echo $rank['Drawn']; ?></td>
                        <td class="w20"><?php echo $rank['Lost']; ?></td>
                        <td class="w60"><?php echo $rank['Point']; ?></td>
                    </tr>
                <?php 
                    $stt++;
                } ?>
            </table>
            <div class="txt_view_more">Chi tiết <a href="<?php echo BASE_URL, '/bang-xep-hang/', Fpt_Filter::setSeoLink($table['leagueName']), '-', Fpt_Filter::setSeoLink($table['seasonName']), '-', $table['leagueID'], '-', $table['seasonID'], '.html' ?>" class="txt_gray"><?php echo $table['leagueName'], ' ', $table['seasonName'] ?></a> <span class="icon_portal_thethao icon_view_more">&nbsp;</span></div>
        </div>
    </div>
</div>